package com.mz.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors( chain = true )
public class SysUser implements Serializable {


    @TableId( type= IdType.ASSIGN_ID )
    private Long id;
    private String username;
    private String nickname;

    @JsonIgnore
    private String password;
    private Integer age;
    private Integer gender;

    @JsonIgnore
    @TableLogic
    private Integer delFlag;
    private Date createTime;
}
